// 时间格式必须为 YYYY-MM-DD
// 如果你使用 el-date-picker ，请设置属性 value-format="YYYY-MM-DD"
export type Department = {
  id: number
  name: string
  phone_number: string
  fax_number: string | null
  description: string | null
  establish_date: Date
  kind: string
  parent_id: number | null
}

export type InsertDepartment = {
  name: string
  phone_number: string
  fax_number?: string
  description?: string
  establish_date: Date
  kind: string
  parent_id?: number
}

export type UpdateDepartment = {
  id: number
  name: string
  phone_number: string
  fax_number?: string
  description?: string
  establish_date: Date
  kind: string
  parent_id?: number
}

export type DptPersonnel = {
  id: string
  sex: string
  name: string
  position: string
}
